﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using ShevaEngine.Core.Modules.Scenes;
using ShevaEngineTools.Editor.Lights;

namespace ShevaEngineTools.Editor
{
    /// <summary>
    /// Editor tools panel.
    /// </summary>
    public partial class EditorToolsPanel : UserControl
    {
        /// <summary>Scene.</summary>
        public Scene Scene;
        /// <summary>Lights.</summary>
        public SceneObjectsSettings Lights;

        /// <summary>
        /// Constructor.
        /// </summary>
        public EditorToolsPanel(Scene scene)
        {
            this.Scene = scene;

            this.InitializeComponent();

            this.Dock = DockStyle.Fill;

            this.Lights = new SceneObjectsSettings(new List<SceneObject>(this.Scene.Lights));
            
            TabPage lightsTabPage = new TabPage("Lights");
            lightsTabPage.Controls.Add(this.Lights);
            this.tabControl1.TabPages.Add(lightsTabPage);
        }
    }
}
